package entity;

import java.util.ArrayList;
import java.util.List;

public class game {
    //游戏开始时的金额
    public static int priceNum;
    //玩家人数
    public int characterNum;
    //参与玩家
    private List<character> gamecharacter=new ArrayList<>();
    //玩家所有的资金数
    private static int[] price={priceNum,priceNum,priceNum,priceNum};
    //游戏地图数据
    private int gameMap[][]={};

    public int getCharacterNum() {
        return characterNum;
    }

    public void setCharacterNum(int characterNum) {
        this.characterNum = characterNum;
    }
    //获得游戏玩家
    public List<entity.character> getCharacter() {
        return gamecharacter;
    }
    //设置游戏中玩家
    public void setGamecharacter(character characters) {
        this.gamecharacter.add(characters);
    }
    //设置游戏开始金额
    public static void setPriceNum(int priceNum) {
        game.priceNum = priceNum;
    }
    //创建一个全局使用的对象
    public static game Game=new game();
    //或者游戏地图数据
    public int[][] getGameMap() {
        return gameMap;
    }
    //获得游戏开始金额
    public static int[] getPrice() {
        return price;
    }
}
